<template>
  <div style="width: 100%">
    <v-details :inputConfig="inputConfig"
               :detailData='inputData.detailData'></v-details>

  </div>
</template>

<script>
import baseMixin from "@/mixins/BaseMixin";
import skipMixin from "@/mixins/SkipMixin";
import details from '@/components/commons/Detail'

export default {
  name: "",
  mixins: [baseMixin, skipMixin],
  props: {
    inputData: {
      type: Object
    }
  },
  data () {
    return {
      dialogTableVisible: false,
      // inputData: {
      //   lineno: "",//行号
      //   receiptkey: "",//订单合同号
      //   style: "",//款式号
      //   storerkey: "",//货主
      //   descr: "",//物料名称
      //   sku: "",//物料编码
      //   suppliername: "",//供应商名称
      //   rtxwlsx: "",//物料类型
      //   uom: "",//采购单位
      //   rtxspec: "",//规格 
      //   color: "",//颜色 
      //   rtxprice: "",//单价 
      //   qty1: "",//已检数量 
      //   rtxqty: "",//收料数量 
      //   rtx_firstok: "",//一级合格数量 
      //   qty2: "",//采购数量 
      //   rtxqcqty: "",//检验数量 
      //   rtxokqty: "",//合格数量 
      //   rtxngqty: "",//不合格数量 
      //   rtxrate: "",//合格率 
      //   rtxsampqty: "",//抽检数量   
      // },
      rules: {
      },
    };
  },
  computed: {
    inputConfig () {
      return [
        [
          {
            type: "input",
            label: this.$t('outbound.userlinenumber'),
            disabled: true,
            props: "lineno"
          },
          {
            type: "date",
            label: this.$t('in.receiptkey2'),
            disabled: true,
            props: "receiptkey"
          },
          {
            type: "input",
            label: this.$t('in.stylekey'),
            disabled: true,
            props: "style"
          },
          {
            type: "input",
            label: this.$t('config.shipper'),
            disabled: true,
            props: "storerkey"
          },
          {
            type: "input",
            label: this.$t('in.stuffName'),
            disabled: true,
            props: "descr"
          },
          {
            type: "input",
            label: this.$t('in.stuffCode'),
            disabled: true,
            props: "sku"
          },
        ],
        [
          {
            type: "input",
            label: this.$t('in.suppliername1'),
            disabled: true,
            props: "suppliername",
          },
          {
            type: "input",
            label: this.$t('in.stuffType'),
            disabled: true,
            props: "rtxwlsx",
          },
          {
            type: "select",
            label: this.$t('in.stuffUom'),
            disabled: true,
            props: "uom",
            options: this.getOptions("")
          },
          {
            type: "input",
            label: this.$t('in.stuffSpec'),
            disabled: true,
            props: "adddate"
          },
          {
            type: "input",
            label: this.$t('in.stuffColor'),
            disabled: true,
            props: "color"
          },
          {
            type: "input",
            label: this.$t('in.stuffPrice'),
            disabled: true,
            props: "rtxprice"
          },
        ],
        [
          {
            type: "input",
            label: this.$t('in.stuffQty1'),
            disabled: true,
            props: "qty1"
          },
          {
            type: "input",
            label: this.$t('in.stuffQty2'),
            disabled: true,
            props: "rtxqty"
          },
          {
            type: "input",
            label: this.$t('in.stuffQty3'),
            disabled: true,
            props: "rtx_firstok"
          },
          {
            type: "input",
            label: this.$t('in.stuffQty4'),
            disabled: true,
            props: "qty2"
          },
          {
            type: "input",
            label: this.$t('in.rtxqcqty'),
            disabled: false,
            props: "rtxqcqty"
          },
          {
            type: "input",
            label: this.$t('in.rtxokqty'),
            disabled: false,
            props: "rtxokqty"
          },
        ],
        [
          {
            type: "input",
            label: this.$t('in.rtxngqty'),
            disabled: true,
            props: "rtxngqty"
          },
          {
            type: "input",
            label: this.$t('in.rtxrate'),
            disabled: true,
            props: "rtxrate"
          },
          {
            type: "input",
            label: this.$t('in.rtxsampqty'),
            disabled: false,
            props: "rtxsampqty"
          },

        ],
      ]
    },
  },
  created () {
  },
  methods: {
  },
  mounted () {
  },
  watch: {},
  components: {
    'v-details': details,
  },

}
</script>

<style scoped>
</style>
